package org.dromara.pe.domain.bo;

import com.baomidou.mybatisplus.annotation.TableField;
import org.dromara.pe.domain.AskLeave;
import org.dromara.common.mybatis.core.domain.BaseEntity;
import org.dromara.common.core.validate.AddGroup;
import org.dromara.common.core.validate.EditGroup;
import io.github.linpeilie.annotations.AutoMapper;
import lombok.Data;
import lombok.EqualsAndHashCode;
import jakarta.validation.constraints.*;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * 免测申请业务对象 phy_pe_ask_leave
 *
 * @author Lion Li
 * @date 2024-09-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = AskLeave.class, reverseConvertGenerate = false)
public class AskLeaveBo extends BaseEntity {

    /**
     * 逻辑主键
     */
    @NotNull(message = "逻辑主键不能为空", groups = { EditGroup.class })
    private Long leaveId;

    /**
     * 姓名
     */
    @NotBlank(message = "姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String stuName;

    /**
     * 学号
     */
    @NotBlank(message = "学号不能为空", groups = { AddGroup.class, EditGroup.class })
    private String stuNum;

    /**
     * 过期限制  0 免测  1缓测
     */
    @NotBlank(message = "过期限制  0 免测  1缓测不能为空", groups = { AddGroup.class, EditGroup.class })
    private String leaveType;



    /**
     * 测试项目主键集合
     */
    private String scopeIds;



    /**
     * 照片
     */
    private String photoUrl;

    /**
     * 申请原因
     */
    @NotBlank(message = "申请原因不能为空", groups = { AddGroup.class, EditGroup.class })
    private String reason;

    /**
     * 审核状态  0 待审核  1审核通过  2审核不通过
     */
    @NotBlank(message = "审核状态  0 待审核  1审核通过  2审核不通过不能为空", groups = { AddGroup.class, EditGroup.class })
    private String auditStatus;

    /**
     * 是否使用  0 未使用  1已使用
     */
    private String isUse;

    /**
     * 审核理由
     */
    private String auditReason;

    /**
     * 审核次数
     */
    private Integer auditNum;
    /**
     * 开始时间
     */
    @TableField(exist = false)
    private String startTime;
    /**
     * 结束时间
     */
    @TableField(exist = false)
    private String endTime;

    /**
     * 年级
     */
    private String years;

    /**
     * 学院
     */
    private String collegeId;
    /**
     * 专业
     */
    private String professionalId;

    /**
     * 性别
     */
    private String gender;

    private String semester;

    /**
     * 年级
     */
    private String classId;




}
